package com.ykdl.member.kid.sqlite;

import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * 
 * 
 * @author LiuZhongNan
 * 除活动外的所有数据的db工具类
 * 
 */
public class DatabaseHelper extends SQLiteOpenHelper {
	/**
	*  
	*/
	private static final int DATABASE_VERSION = 12;
	private static final String DATABASE_NAME = "wxxr_kid.db";
	Context mContext;

	/**
	 * 调用父类创建库
	 * 
	 * @param context
	 */
	public DatabaseHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
		mContext = context;
		// TODO Auto-generated constructor stub
	}

	/**
	 * 创建表
	 */
	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		try {
			db.execSQL(LogonCookeDao.create_table);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}






}